<template>
    <div class="topleft">
        <div class="radio">
            <el-radio v-model="radio1" label="1" border size="small">单程</el-radio>
            <el-radio v-model="radio1" label="2" border size="small">往返</el-radio>
        </div>
        <div class="check">
            <div>出发城市</div>
            <div>到达城市</div>
            <div>出发日期</div>
            <div>返回日期</div>
        </div>
        <div class="input">
          <el-input placeholder="中文/拼音/简写" v-model="before"></el-input>
          <el-input placeholder="中文/拼音/简写"></el-input>
          <el-date-picker v-model="date1" type="date" placeholder="请选择日期"></el-date-picker>
          <el-date-picker v-model="date2" type="date" placeholder="请选择日期"></el-date-picker>
        </div>
        <el-button icon="el-icon-search" class="btn" @click="tiao">搜索</el-button>
    </div>
</template>

<script>
export default {
    name:"topLeft",
    data(){
        return{
            radio1: '1',
            date1:"",
            date2:"",
            before:""
        }
    },
    methods:{
        tiao(){
            this.$router.push({path:"/ticket/detail",query:{mid:1,address:this.before}})
        }
    }
}
</script>

<style scoped>
.topleft{
    width: 100%;
    height: 90%;
    margin: 0 auto;
    /* margin-top: 50px; */
    border: 2px solid #41c1ec ;
    /* background-color: white; */
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 5px;
}
.radio{
    margin-left: 145px;
    margin-top: 40px;
}
.el-radio.is-bordered.is-checked{
    color: #41c1ec;
    border-color: #41c1ec;
}
.check{
    margin-top: 20px;
    float: left;
    font-size: 17px;
    line-height: 20px;
    margin-left: 60px;
    color: #808080;
}
.check div{
    margin-top: 40px;
}
.check div:nth-child(1){
    margin-top: 10px;
}
.input{
    width: 230px;
    margin-left: 0px;
    float: right;
    margin-right: 70px;
}
.el-input,.el-date-editor{
    margin-top: 20px !important;
    width: 230px !important;
}
.btn{
    width: 230px !important;
    margin-top: 20px;
    margin-left: 145px;
    font-size: 18px;
    background-color: #41c1ec;
    color: white;
}
</style>
